// 获取订单交易页

export interface tradeModel {
  totalAmount: number
  userAddressList: userAddressAll
  tradeNo: string
  totalNum: number
  detailArrayList: detailArrayAll
}

export type userAddressAll = userAddressData[]
// userAddressList 的一条数据
export interface userAddressData {
  id: number
  userAddress: string
  userId: number
  consignee: string
  phoneNum: string
  isDefault: string
}

export type detailArrayAll = detailArray[]

// detailArrayList 的一条数据
export interface detailArray {
  imgUrl: string
  orderId: null
  orderPrice: number
  skuId: number
  skuName: string
  skuNum: number
}

// 获取订单列表

export interface orderList {
  records: recordsModel
  total: number
  size: number
  current: number
  pages: number
}

export type recordsModel = recordsData[]
// records 的一条数据
export interface recordsData {
  id: number
  consignee: string
  consigneeTel: string
  totalAmount: number
  userId: number
  deliveryAddress: string
  outTradeNo: string
  tradeBody: string
  orderDetailList: orderDetailModel
}

export type orderDetailModel = orderDetail[]
// orderDetailList 的一条数据
export interface orderDetail {
  id: number
  orderId: number
  skuId: number
  skuName: string
  imgUrl: string
  orderPrice: number
  skuNum: number
}

// 获取订单支付信息

export interface PayOrder {
  codeUrl: string
  orderId: number
  totalFee: number
  resultCode: string
}
